﻿using System;
using Microsoft.Win32;

using Pamela.Logic.Configurations.Base;


namespace Pamela.Logic.Configurations
{
    internal class RegistryConfig : IConfig
    {
        public string GetInstalPathPath()
        {
            return (string)Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\CamoteQ\\", "InstallPath", null);
        }

        public string GetTemplatesPath()
        {
            var installPath = GetInstalPathPath();
            return string.Format(@"{0}\pamela\templates", installPath);
        }
    }
}
